package entity;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

@Document(collection="user")
public class User {
    private static final long serialVersionUID = -3258839839160856613L;
    @Field("id")
    private Long id;
    @Field("user_name")
    private String userName;
    @Field("password")
    private String password;
    @Field("tatoalFlowSize")
    private Integer tatoalFlowSize;
    @Field("Aoumt")
    private Integer Aoumt;

    public Integer getAoumt() {
        return Aoumt;
    }

    public void setAoumt(Integer aoumt) {
        Aoumt = aoumt;
    }

    public String getUserNames() {
        return userNames;
    }

    public void setUserNames(String userNames) {
        this.userNames = userNames;
    }

    @Field("userNames")
    private String userNames;

    public Integer getTatoalFlowSize() {
        return tatoalFlowSize;
    }

    public void setTatoalFlowSize(Integer tatoalFlowSize) {
        this.tatoalFlowSize = tatoalFlowSize;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", tatoalFlowSize=" + tatoalFlowSize +
                '}';
    }
}
